/* $Id: AbstractActionWrapper.java 60 2010-02-01 19:54:35Z aaron.day $ */
package org.crazydays.gameplan.swing;


import javax.swing.AbstractAction;
import javax.swing.Icon;

import org.crazydays.gameplan.controller.Controller;

/**
 * AbstractActionWrapper
 */
public abstract class AbstractActionWrapper
    extends AbstractAction
{
    /** serial version uid */
    public final static long serialVersionUID =
        "$Id: AbstractActionWrapper.java 60 2010-02-01 19:54:35Z aaron.day $"
            .hashCode();

    /** controller */
    protected Controller controller;

    /**
     * AbstractActionWrapper constructor.
     */
    public AbstractActionWrapper()
    {
        super();
    }

    /**
     * AbstractActionWrapper constructor.
     * 
     * @param text Text
     */
    public AbstractActionWrapper(String text)
    {
        super(text);
    }

    /**
     * AbstractActionWrapper constructor.
     * 
     * @param text Text
     * @param icon Icon
     */
    public AbstractActionWrapper(String text, Icon icon)
    {
        super(text, icon);
    }

    /**
     * AbstractActionWrapper constructor.
     * 
     * @param icon Icon
     */
    public AbstractActionWrapper(Icon icon)
    {
        super(null, icon);
    }

    /**
     * Set controller.
     * 
     * @param controller Controller
     */
    public void setController(Controller controller)
    {
        this.controller = controller;
    }
}
